/**
 * ajax后台地址和接口调用接口地址前加test为测试地址去掉test为正式地址
 * */
var _host = 'http://settledapi.eduoln.com/';
var routes = {
    user: {
        //获取验证码
        getCode: 'api/Account/GetPhoneIdentifyCodeForTrainingInstitution',
        //获取审核状态和审核失败的原因
        getStatus: 'api/Account/GetTrainingInstitutionCheckStatus',
        //注册接口
        register: "api/Account/TrainingInstitutionRegister",
        //找回密码
        resetpass: 'api/Setting/TrainingInstitutionResetPsw',
        //判断手机号码有没有注册过
        GetUserInfoById:'api/Account/GetTrainingInstitutionInfoByPhone',
        //提交入驻用户的联系方式
        SubmitConsultation:'api/Account/SubmitConsultation'
    },
    process: {
        //提交所有资料接口
        submitmaterial: 'api/Account/SubmitTrainingInstitutionCheckInfo',
        //获取用户填写的资料以及未通过原因
        getusermaterial: 'api/Account/GetTrainingInstitutionCheckInfo',
        //提交图片接口
        uploadImg: 'api/Account/SubmitTrainingInstitutionCheckImg',
        //提交每次输入的资料
        submitone: 'api/Account/SaveTrainingInstitutionInfo',
        //获取审核状态
        getStatus:'api/Account/GetTrainingInstitutionCheckStatus',
        //修改审核状态
        UpdateTrainingCheckStatus:'api/Account/UpdateTrainingCheckStatus'
    },
    news:{
        GetNewsListByTypeId:'api/News/GetNewListByTypeId',
        GetNewsImg:'api/News/GetNewsImg'
    },
    help:{
        GetHelpList:'api/Account/GetHelpList'
    },
    wxSettled:{
        SubmitSchoolInfo:'api/Account/SubmitSchoolInfo',//提交微信机构入驻的意向信息
    },
    cooperation:{
        SubmitCooperation:'api/Account/SubmitCooperation'
}
};

for (var key in routes)
    for (var key2 in routes[key])
        routes[key][key2] = _host + routes[key][key2];


